{include file="public/common" /}

<div class="layui-colla-item">
    <h2 class="layui-colla-title">订单信息</h2>
    <div class="layui-colla-content layui-show ">
    <table class="layui-table">
        <thead>
        <tr>
            <td colspan="4">订单号：{$order_data.order_id}</td>
            <td colspan="4">下单时间：{$order_data.created_time}</td>
        </tr>
        <tr>
            <td colspan="1">客户：{$order_data.user_name}</td>
            <td colspan="3">电话：{$order_data.telephone}</td>
            <td colspan="3">地址：{$order_data.address}</td>
        </tr>
        </thead>
        {if condition="!empty($order_detail)"}
        <tbody>
        <tr>
            <td>商品名称</td>
            <td>单价</td>
            <td>配货数量</td>
            <td>商品重量</td>
            <td>商品总价</td>
        </tr>
        {volist name="order_detail" id="item"}
        <tr>
            <td>{$item.goods_name}</td>
            <td>{$item.price}</td>
            <td>{$item.count}</td>
            <td>{$item.weight_total}</td>
            <td>{$item.total}</td>
        </tr>
        {/volist}
        </tbody>
        {/if}
    </table>

    <table class="layui-table">
        <tbody>
        <tr>
            <td>交易码</td>
            <td>{$trade.code}</td>
        </tr>
        <tr>
            <td>交易时间</td>
            <td>{$trade.created_time}</td>
        </tr>
        <tr>
            <td>支付状态</td>
            <td>{if condition="$trade->is_pay == 1"}已支付{else}未支付{/if}</td>
        </tr>
        </tbody>
    </table>
</div>


</div>



<script type="text/javascript">
    layui.use('element', function(){
        var element = layui.element();
    });


</script>
</body>

</html>

